package bulidStream;

import java.util.stream.Stream;

/**
 * @Author wangtengyu
 * @Create 2018-06-06-16:38
 */
public class FeboDemo {
    public static void main(String[] args) {
        Stream.iterate(new int[]{0,1},t->new int[]{t[1],t[0]+t[1]}).limit(10).map(t->t[0]).forEach(t->System.out.print(t+","));

    }
}
